.Orig x0500
INIT_CODE
LD R5, STACK_ADDR
ADD R6, R5, #0
LD R4, GLOBAL_DATA_POINTER
LD R7, GLOBAL_MAIN_POINTER
jsrr R7
HALT

GLOBAL_DATA_POINTER .FILL GLOBAL_DATA_START
GLOBAL_MAIN_POINTER .FILL main
STACK_ADDR .FILL xdfff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;getObjAddressOffset;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_getObjAddressOffset
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
ldr R7, R5, #4
str R7, R5, #0
ldr R7, R5, #0
str R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L28
;<ld R7, L4_raptorOld	;GLOB:18>
LDR R7, R4, #18
;</ld>
jmp R7
L28
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L29
;<ld R7, L4_raptorOld	;GLOB:18>
LDR R7, R4, #18
;</ld>
jmp R7
L29
;<lea R7, L26_raptorOld	;GLOB:4>
ADD R7, R4, #4
;</lea>
ldr R3, R5, #-1
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L7_raptorOld
ldr R7, R5, #5
;<ld R3, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L9_raptorOld
ldr R7, R5, #5
;<ld R3, L10_raptorOld	;GLOB:2003>
BR #1
.FILL #2003
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L11_raptorOld	;GLOB:2002>
BR #1
.FILL #2002
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L12_raptorOld
ldr R7, R5, #5
;<ld R3, L13_raptorOld	;GLOB:2001>
BR #1
.FILL #2001
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L14_raptorOld	;GLOB:2000>
BR #1
.FILL #2000
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L15_raptorOld
ldr R7, R5, #5
;<ld R3, L16_raptorOld	;GLOB:1999>
BR #1
.FILL #1999
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L17_raptorOld	;GLOB:1998>
BR #1
.FILL #1998
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L18_raptorOld
ldr R7, R5, #5
;<ld R3, L19_raptorOld	;GLOB:1997>
BR #1
.FILL #1997
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L20_raptorOld	;GLOB:1996>
BR #1
.FILL #1996
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L21_raptorOld
ldr R7, R5, #5
;<ld R3, L22_raptorOld	;GLOB:1995>
BR #1
.FILL #1995
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L5_raptorOld	;GLOB:19>
LDR R0, R4, #19
;</ld>
JMP R0
lc3_L24_raptorOld
ldr R7, R5, #5
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L4_raptorOld
lc3_L5_raptorOld
lc3_L3_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;getTypeImgSize;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_getTypeImgSize
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
ldr R7, R5, #4
str R7, R5, #0
ldr R7, R5, #0
str R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L45
;<ld R7, L31_raptorOld	;GLOB:36>
ADD R7, R4, #5
LDR R7, R7, #31
;</ld>
jmp R7
L45
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L46
;<ld R7, L31_raptorOld	;GLOB:36>
ADD R7, R4, #5
LDR R7, R7, #31
;</ld>
jmp R7
L46
;<lea R7, L44_raptorOld	;GLOB:22>
ADD R7, R4, #15
ADD R7, R7, #7
;</lea>
ldr R3, R5, #-1
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L34_raptorOld
ldr R7, R5, #5
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L36_raptorOld
ldr R7, R5, #5
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L37_raptorOld
ldr R7, R5, #5
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L38_raptorOld
ldr R7, R5, #5
;<ld R3, L39_raptorOld	;GLOB:1991>
BR #1
.FILL #1991
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L39_raptorOld	;GLOB:1991>
BR #1
.FILL #1991
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L40_raptorOld
ldr R7, R5, #5
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L41_raptorOld
ldr R7, R5, #5
;<ld R3, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L32_raptorOld	;GLOB:37>
ADD R0, R4, #6
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L42_raptorOld
ldr R7, R5, #5
;<ld R3, L43_raptorOld	;GLOB:1990>
BR #1
.FILL #1990
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #6
;<ld R3, L43_raptorOld	;GLOB:1990>
BR #1
.FILL #1990
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L31_raptorOld
lc3_L32_raptorOld
lc3_L30_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createRaptor;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createRaptor
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L48_raptorOld	;GLOB:1989>
BR #1
.FILL #1989
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L49_raptorOld	;GLOB:1988>
BR #1
.FILL #1988
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L50_raptorOld	;GLOB:1987>
BR #1
.FILL #1987
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L51_raptorOld	;GLOB:1986>
BR #1
.FILL #1986
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L52_raptorOld	;GLOB:1985>
BR #1
.FILL #1985
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
;<ld R2, L51_raptorOld	;GLOB:1986>
BR #1
.FILL #1986
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
ldr R7, R5, #0
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L55_raptorOld	;GLOB:1982>
BR #1
.FILL #1982
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L57_raptorOld	;GLOB:1980>
BR #1
.FILL #1980
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L58_raptorOld	;GLOB:1979>
BR #1
.FILL #1979
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L59_raptorOld	;GLOB:1978>
BR #1
.FILL #1978
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L60_raptorOld	;GLOB:1977>
BR #1
.FILL #1977
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
ldr R7, R5, #0
lc3_L47_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createHelicopter;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createHelicopter
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
AND R7, R7, #0
str R7, R5, #0
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L67
;<ld R7, L62_raptorOld	;GLOB:42>
ADD R7, R4, #11
LDR R7, R7, #31
;</ld>
jmp R7
L67
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L66_raptorOld	;GLOB:1974>
BR #1
.FILL #1974
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L62_raptorOld
ldr R7, R5, #0
lc3_L61_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createMig;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createMig
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
AND R7, R7, #0
str R7, R5, #0
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L72
;<ld R7, L69_raptorOld	;GLOB:45>
ADD R7, R4, #14
LDR R7, R7, #31
;</ld>
jmp R7
L72
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R3, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
ADD R6, R6, #-1
STR R3, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L71_raptorOld	;GLOB:1973>
BR #1
.FILL #1973
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L69_raptorOld
ldr R7, R5, #0
lc3_L68_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createBullet;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createBullet
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
AND R7, R7, #0
str R7, R5, #0
;<ld R7, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L78
;<ld R7, L75_raptorOld	;GLOB:48>
ADD R7, R4, #15
ADD R7, R7, #2
LDR R7, R7, #31
;</ld>
jmp R7
L78
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L77_raptorOld	;GLOB:1971>
BR #1
.FILL #1971
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L75_raptorOld
ldr R7, R5, #0
lc3_L73_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createAid;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createAid
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
AND R7, R7, #0
str R7, R5, #0
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L83
;<ld R7, L80_raptorOld	;GLOB:51>
ADD R7, R4, #15
ADD R7, R7, #5
LDR R7, R7, #31
;</ld>
jmp R7
L83
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L82_raptorOld	;GLOB:1970>
BR #1
.FILL #1970
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L77_raptorOld	;GLOB:1971>
BR #1
.FILL #1971
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L80_raptorOld
ldr R7, R5, #0
lc3_L79_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createExplosion;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createExplosion
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-4
AND R7, R7, #0
str R7, R5, #0
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L97
;<ld R7, L86_raptorOld	;GLOB:54>
ADD R7, R4, #15
ADD R7, R7, #8
LDR R7, R7, #31
;</ld>
jmp R7
L97
;<ld R7, L43_raptorOld	;GLOB:1990>
BR #1
.FILL #1990
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #4
;<sub R3, R3, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R3, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R3, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R3, R5, #-2
ldr R3, R5, #5
;<sub R7, R3, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R3, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-3
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L88_raptorOld	;GLOB:1968>
BR #1
.FILL #1968
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L89_raptorOld	;GLOB:1967>
BR #1
.FILL #1967
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L90_raptorOld	;GLOB:1966>
BR #1
.FILL #1966
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L92_raptorOld	;GLOB:1964>
BR #1
.FILL #1964
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L94_raptorOld	;GLOB:1962>
BR #1
.FILL #1962
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L86_raptorOld
ldr R7, R5, #6
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L98
;<ld R7, L95_raptorOld	;GLOB:55>
ADD R7, R4, #15
ADD R7, R7, #9
LDR R7, R7, #31
;</ld>
jmp R7
L98
;<ld R7, L48_raptorOld	;GLOB:1989>
BR #1
.FILL #1989
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L96_raptorOld	;GLOB:56>
ADD R0, R4, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L95_raptorOld
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L96_raptorOld
ldr R7, R5, #0
lc3_L84_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;wait;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_wait
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-5
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-3
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R7, L100_raptorOld	;GLOB:1961>
BR #1
.FILL #1961
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-4
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
ldr R7, R5, #4
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ldr R3, R5, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L115
;<ld R7, L101_raptorOld	;GLOB:59>
ADD R7, R4, #15
ADD R7, R7, #13
LDR R7, R7, #31
;</ld>
jmp R7
L115
ldr R7, R5, #4
ldr R3, R7, #0
;<ld R2, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
add R7, R3, R7
ldr R3, R5, #-3
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L116
;<ld R7, L102_raptorOld	;GLOB:63>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #2
LDR R7, R7, #31
;</ld>
jmp R7
L116
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
;<ld R0, L102_raptorOld	;GLOB:63>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #2
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L101_raptorOld
ldr R7, R5, #0
ldr R3, R5, #4
;<ld R2, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L117
;<ld R7, L107_raptorOld	;GLOB:60>
ADD R7, R4, #15
ADD R7, R7, #14
LDR R7, R7, #31
;</ld>
jmp R7
L117
ldr R7, R5, #4
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
ldr R3, R3, #0
ldr R2, R5, #-4
ldr R7, R7, #0
;<sub R7, R2, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R2, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
;<sub R7, R3, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R3, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
ldr R3, R5, #-3
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L118
;<ld R7, L108_raptorOld	;GLOB:62>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #1
LDR R7, R7, #31
;</ld>
jmp R7
L118
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
;<ld R0, L108_raptorOld	;GLOB:62>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #1
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L107_raptorOld
ldr R7, R5, #0
ldr R3, R5, #4
;<ld R2, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L119
;<ld R7, L111_raptorOld	;GLOB:61>
ADD R7, R4, #15
ADD R7, R7, #15
LDR R7, R7, #31
;</ld>
jmp R7
L119
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
lc3_L111_raptorOld
lc3_L108_raptorOld
lc3_L102_raptorOld
ldr R7, R5, #-2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L120
;<ld R7, L113_raptorOld	;GLOB:64>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #3
LDR R7, R7, #31
;</ld>
jmp R7
L120
ldr R7, R5, #4
ldr R3, R5, #-3
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R3, R5, #0
str R3, R7, #0
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
lc3_L113_raptorOld
ldr R7, R5, #-1
lc3_L99_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;raptorShoot;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_raptorShoot
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-4
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-2
;<ld R7, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getNewObjectId	;GLOB:142>
BR #1
.FILL #142
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L125_raptorOld	;GLOB:1957>
BR #1
.FILL #1957
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L131
;<ld R7, L123_raptorOld	;GLOB:69>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #8
LDR R7, R7, #31
;</ld>
jmp R7
L131
ldr R7, R5, #4
;<ld R3, L126_raptorOld	;GLOB:1956>
BR #1
.FILL #1956
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L132
;<ld R7, L123_raptorOld	;GLOB:69>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #8
LDR R7, R7, #31
;</ld>
jmp R7
L132
ldr R7, R5, #4
;<ld R3, L60_raptorOld	;GLOB:1977>
BR #1
.FILL #1977
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L133
;<ld R7, L127_raptorOld	;GLOB:67>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #6
LDR R7, R7, #31
;</ld>
jmp R7
L133
;<ld R7, L129_raptorOld	;GLOB:1955>
BR #1
.FILL #1955
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-3
ldr R7, R5, #4
;<ld R3, L60_raptorOld	;GLOB:1977>
BR #1
.FILL #1977
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L128_raptorOld	;GLOB:68>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #7
LDR R0, R0, #31
;</ld>
JMP R0
lc3_L127_raptorOld
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-3
ldr R7, R5, #4
;<ld R3, L60_raptorOld	;GLOB:1977>
BR #1
.FILL #1977
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L128_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
ldr R3, R3, #0
;<ld R2, L16_raptorOld	;GLOB:1999>
BR #1
.FILL #1999
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ADD R6, R6, #-1
STR R3, R6, #0
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ldr R3, R5, #-3
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBaseObj	;GLOB:71>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #7
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #-1
;<ld R3, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #-1
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #-1
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L130_raptorOld	;GLOB:1954>
BR #1
.FILL #1954
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L123_raptorOld
lc3_L121_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;createBaseObj;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_createBaseObj
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-16
ADD R6, R6, #-8
ldr R7, R5, #4
str R7, R5, #-23
ldr R7, R5, #5
str R7, R5, #-22
ldr R7, R5, #6
str R7, R5, #-21
ldr R7, R5, #7
str R7, R5, #-20
ldr R7, R5, #8
str R7, R5, #-19
ldr R7, R5, #9
str R7, R5, #-16
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-18
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-17
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-14
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-15
ADD R7, R5, #-16
ADD R7, R7, #-7
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, saveBaseObj	;GLOB:82>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #6
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-5
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-4
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-8
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-7
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-13
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-12
ldr R7, R5, #-23
;<lea R3, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-23
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R1, R7, R3
ADD R0, R5, #-16
ADD R0, R0, #-7
;<ASGNB>
ADD R6, R6, #-1
STR R2, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
;blkloop!!!!
AND R3, R3, #0
ADD R3, R3, #15
ADD R3, R3, #9
L153
LDR R2, R0, #0
STR R2, R1, #0
ADD R0, R0, #1
ADD R1, R1, #1
ADD R3, R3, #-1
BRnp L153
LDR R3, R6, #0
ADD R6, R6, #1
LDR R2, R6, #0
ADD R6, R6, #1
;</ASGNB>
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-23
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
lc3_L134_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;setObjX;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_setObjX
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
ldr R3, R5, #5
;<ld R2, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L158
;<ld R7, L155_raptorOld	;GLOB:74>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #13
LDR R7, R7, #31
;</ld>
jmp R7
L158
ldr R7, R5, #5
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R3, R5, #4
str R3, R7, #0
ldr R7, R5, #5
;<ld R3, L157_raptorOld	;GLOB:1952>
BR #1
.FILL #1952
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L155_raptorOld
lc3_L154_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;setObjY;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_setObjY
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
ldr R3, R5, #5
;<ld R2, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L162
;<ld R7, L160_raptorOld	;GLOB:77>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #1
LDR R7, R7, #31
;</ld>
jmp R7
L162
ldr R7, R5, #5
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R3, R5, #4
str R3, R7, #0
ldr R7, R5, #5
;<ld R3, L157_raptorOld	;GLOB:1952>
BR #1
.FILL #1952
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L160_raptorOld
lc3_L159_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;setObjEnabled;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_setObjEnabled
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #5
;<ld R3, L164_raptorOld	;GLOB:1951>
BR #1
.FILL #1951
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R3, R5, #4
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L167
;<ld R7, L165_raptorOld	;GLOB:80>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #4
LDR R7, R7, #31
;</ld>
jmp R7
L167
ldr R7, R5, #5
ldr R7, R7, #0
;<lea R3, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjX	;GLOB:73>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjY	;GLOB:76>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, saveBaseObj	;GLOB:82>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #6
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L165_raptorOld
lc3_L163_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;saveBaseObj;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_saveBaseObj
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
;<ld R3, L171_raptorOld	;GLOB:1950>
BR #1
.FILL #1950
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L177
;<ld R7, L169_raptorOld	;GLOB:83>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #7
LDR R7, R7, #31
;</ld>
jmp R7
L177
ldr R7, R5, #4
str R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getObjVGAID	;GLOB:86>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
ldr R3, R5, #0
ldr R3, R3, #0
;<ld R2, L172_raptorOld	;GLOB:1949>
BR #1
.FILL #1949
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
;<ld R2, IO	;GLOB:0>
LDR R2, R4, #0
;</ld>
add R3, R3, R2
str R7, R3, #0
lc3_L169_raptorOld
ldr R7, R5, #4
;<ld R3, L157_raptorOld	;GLOB:1952>
BR #1
.FILL #1952
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L178
;<ld R7, L173_raptorOld	;GLOB:84>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #8
LDR R7, R7, #31
;</ld>
jmp R7
L178
ldr R7, R5, #4
ldr R3, R7, #0
;<ld R2, L175_raptorOld	;GLOB:1948>
BR #1
.FILL #1948
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
;<ld R2, IO	;GLOB:0>
LDR R2, R4, #0
;</ld>
add R3, R3, R2
;<ld R2, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
ldr R7, R5, #4
ldr R3, R7, #0
;<ld R2, L176_raptorOld	;GLOB:1947>
BR #1
.FILL #1947
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
;<ld R2, IO	;GLOB:0>
LDR R2, R4, #0
;</ld>
add R3, R3, R2
;<ld R2, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
lc3_L173_raptorOld
ldr R7, R5, #4
;<ld R3, L157_raptorOld	;GLOB:1952>
BR #1
.FILL #1952
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L171_raptorOld	;GLOB:1950>
BR #1
.FILL #1950
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L168_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;getObjVGAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_getObjVGAID
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
;<ld R3, L180_raptorOld	;GLOB:1946>
BR #1
.FILL #1946
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
ldr R7, R5, #0
lc3_L179_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;moveRaptor;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_moveRaptor
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-4
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
;<ld R3, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-1
ldr R7, R5, #0
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-2
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-3
ldr R7, R5, #0
;<ld R3, L90_raptorOld	;GLOB:1966>
BR #1
.FILL #1966
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L208
;<ld R7, L182_raptorOld	;GLOB:99>
BR #1
.FILL #99
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L208
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L209
;<ld R7, L184_raptorOld	;GLOB:90>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #14
LDR R7, R7, #31
;</ld>
jmp R7
L209
ldr R7, R5, #-2
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-2
ldr R7, R5, #-2
;<ld R3, L189_raptorOld	;GLOB:1944>
BR #1
.FILL #1944
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L210
;<ld R7, L187_raptorOld	;GLOB:89>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #13
LDR R7, R7, #31
;</ld>
jmp R7
L210
;<ld R7, L189_raptorOld	;GLOB:1944>
BR #1
.FILL #1944
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
lc3_L187_raptorOld
lc3_L184_raptorOld
;<ld R7, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L211
;<ld R7, L190_raptorOld	;GLOB:92>
BR #1
.FILL #92
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L211
ldr R7, R5, #-2
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #-2
;<ld R7, L192_raptorOld	;GLOB:1943>
BR #1
.FILL #1943
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-3
ldr R7, R5, #-2
ldr R3, R5, #-3
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L212
;<ld R7, L193_raptorOld	;GLOB:91>
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
LDR R7, R7, #31
;</ld>
jmp R7
L212
ldr R7, R5, #-3
str R7, R5, #-2
lc3_L193_raptorOld
lc3_L190_raptorOld
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L213
;<ld R7, L195_raptorOld	;GLOB:94>
BR #1
.FILL #94
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L213
ldr R7, R5, #-1
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #-1
;<ld R7, L197_raptorOld	;GLOB:1942>
BR #1
.FILL #1942
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-3
ldr R7, R5, #-1
ldr R3, R5, #-3
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L214
;<ld R7, L198_raptorOld	;GLOB:93>
BR #1
.FILL #93
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L214
ldr R7, R5, #-3
str R7, R5, #-1
lc3_L198_raptorOld
lc3_L195_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L215
;<ld R7, L200_raptorOld	;GLOB:96>
BR #1
.FILL #96
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L215
ldr R7, R5, #-1
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L189_raptorOld	;GLOB:1944>
BR #1
.FILL #1944
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L216
;<ld R7, L202_raptorOld	;GLOB:95>
BR #1
.FILL #95
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L216
;<ld R7, L189_raptorOld	;GLOB:1944>
BR #1
.FILL #1944
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
lc3_L202_raptorOld
lc3_L200_raptorOld
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L217
;<ld R7, L204_raptorOld	;GLOB:97>
BR #1
.FILL #97
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L217
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, raptorShoot	;GLOB:66>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #5
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L204_raptorOld
;<ld R7, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L218
;<ld R7, L206_raptorOld	;GLOB:98>
BR #1
.FILL #98
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L218
lc3_L206_raptorOld
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjX	;GLOB:73>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjY	;GLOB:76>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, saveBaseObj	;GLOB:82>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #6
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L182_raptorOld
lc3_L181_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;moveObjects;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_moveObjects
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<ld R7, L19_raptorOld	;GLOB:1997>
BR #1
.FILL #1997
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
lc3_L220_raptorOld
ldr R7, R5, #0
;<ld R3, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L228
;<ld R7, L224_raptorOld	;GLOB:104>
BR #1
.FILL #104
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L228
ldr R7, R5, #0
;<lea R3, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L229
;<ld R7, L226_raptorOld	;GLOB:103>
BR #1
.FILL #103
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L229
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #0
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, moveObject	;GLOB:107>
BR #1
.FILL #107
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L226_raptorOld
lc3_L224_raptorOld
lc3_L221_raptorOld
ldr R7, R5, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L125_raptorOld	;GLOB:1957>
BR #1
.FILL #1957
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRzp L230
;<ld R7, L220_raptorOld	;GLOB:102>
BR #1
.FILL #102
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L230
lc3_L219_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;moveObject;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_moveObject
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-3
ldr R7, R5, #4
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R7, L232_raptorOld	;GLOB:1941>
BR #1
.FILL #1941
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
ldr R7, R5, #4
;<ld R3, L90_raptorOld	;GLOB:1966>
BR #1
.FILL #1966
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L248
;<ld R7, L233_raptorOld	;GLOB:118>
BR #1
.FILL #118
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L248
ldr R7, R5, #4
;<ld R3, L89_raptorOld	;GLOB:1967>
BR #1
.FILL #1967
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L249
;<ld R7, L235_raptorOld	;GLOB:108>
BR #1
.FILL #108
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L249
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjEnabled	;GLOB:79>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
lc3_L235_raptorOld
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L250
;<ld R7, L237_raptorOld	;GLOB:109>
BR #1
.FILL #109
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L250
ldr R7, R5, #0
;<ld R3, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #0
;<ld R0, L238_raptorOld	;GLOB:114>
BR #1
.FILL #114
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L237_raptorOld
ldr R7, R5, #4
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L251
;<ld R7, L240_raptorOld	;GLOB:110>
BR #1
.FILL #110
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L251
ldr R7, R5, #0
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #0
;<ld R0, L241_raptorOld	;GLOB:113>
BR #1
.FILL #113
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L240_raptorOld
ldr R7, R5, #4
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L252
;<ld R7, L242_raptorOld	;GLOB:111>
BR #1
.FILL #111
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L252
ldr R7, R5, #0
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #0
;<ld R0, L243_raptorOld	;GLOB:112>
BR #1
.FILL #112
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L242_raptorOld
ldr R7, R5, #0
str R7, R5, #0
lc3_L243_raptorOld
lc3_L241_raptorOld
lc3_L238_raptorOld
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjY	;GLOB:76>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, saveBaseObj	;GLOB:82>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #6
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #2
ldr R7, R5, #4
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L253
;<ld R7, L247_raptorOld	;GLOB:115>
BR #1
.FILL #115
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L253
ldr R7, R5, #0
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L254
;<ld R7, L246_raptorOld	;GLOB:116>
BR #1
.FILL #116
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L254
lc3_L247_raptorOld
ldr R7, R5, #4
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L255
;<ld R7, L244_raptorOld	;GLOB:117>
BR #1
.FILL #117
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L255
ldr R7, R5, #0
ldr R3, R5, #-2
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L256
;<ld R7, L244_raptorOld	;GLOB:117>
BR #1
.FILL #117
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L256
lc3_L246_raptorOld
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjEnabled	;GLOB:79>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
lc3_L244_raptorOld
lc3_L233_raptorOld
lc3_L231_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;keyPressed;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_keyPressed
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-4
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L258_raptorOld	;GLOB:1939>
BR #1
.FILL #1939
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
ldr R7, R5, #4
str R7, R5, #-2
ldr R7, R5, #-2
str R7, R5, #-3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L271
;<ld R7, L259_raptorOld	;GLOB:135>
BR #1
.FILL #135
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L271
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-3
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L272
;<ld R7, L259_raptorOld	;GLOB:135>
BR #1
.FILL #135
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L272
;<lea R7, L270_raptorOld	;GLOB:121>
BR #1
.FILL #121
LD R7, #-2
ADD R7, R7, R4
;</lea>
ldr R3, R5, #-3
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L262_raptorOld
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L263_raptorOld
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L264_raptorOld
;<ld R7, L85_raptorOld	;GLOB:1969>
BR #1
.FILL #1969
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L265_raptorOld
;<ld R7, L52_raptorOld	;GLOB:1985>
BR #1
.FILL #1985
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L266_raptorOld
;<ld R7, L267_raptorOld	;GLOB:1938>
BR #1
.FILL #1938
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L268_raptorOld
;<ld R7, L43_raptorOld	;GLOB:1990>
BR #1
.FILL #1990
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L269_raptorOld
;<ld R7, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R0, L260_raptorOld	;GLOB:136>
BR #1
.FILL #136
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L259_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
lc3_L260_raptorOld
ldr R7, R5, #0
ldr R3, R5, #-1
and R7, R7, R3
lc3_L257_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;clearEnabledObjects;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_clearEnabledObjects
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
lc3_L274_raptorOld
ldr R7, R5, #0
;<lea R3, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L172_raptorOld	;GLOB:1949>
BR #1
.FILL #1949
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
add R7, R7, R3
;<ld R3, L278_raptorOld	;GLOB:1937>
BR #1
.FILL #1937
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #0
;<ld R3, L175_raptorOld	;GLOB:1948>
BR #1
.FILL #1948
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
add R7, R7, R3
;<ld R3, L278_raptorOld	;GLOB:1937>
BR #1
.FILL #1937
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L279_raptorOld	;GLOB:1936>
BR #1
.FILL #1936
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L278_raptorOld	;GLOB:1937>
BR #1
.FILL #1937
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L275_raptorOld
ldr R7, R5, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #0
ldr R7, R5, #0
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L280
;<ld R7, L274_raptorOld	;GLOB:139>
BR #1
.FILL #139
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L280
lc3_L273_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;getNewObjectId;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_getNewObjectId
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-4
;<ld R7, L125_raptorOld	;GLOB:1957>
BR #1
.FILL #1957
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
ADD R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getObjAddressOffset	;GLOB:3>
LDR R0, R4, #3
;</ld>
jsrr R0
ADD R6, R6, #4
ldr R7, R5, #-3
str R7, R5, #0
;<ld R0, L285_raptorOld	;GLOB:146>
BR #1
.FILL #146
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L282_raptorOld
ldr R7, R5, #0
;<lea R3, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L288
;<ld R7, L286_raptorOld	;GLOB:144>
BR #1
.FILL #144
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L288
ldr R7, R5, #0
str R7, R5, #-2
;<ld R0, L284_raptorOld	;GLOB:147>
BR #1
.FILL #147
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L286_raptorOld
lc3_L283_raptorOld
ldr R7, R5, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #0
lc3_L285_raptorOld
ldr R7, R5, #0
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L289
;<ld R7, L282_raptorOld	;GLOB:143>
BR #1
.FILL #143
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L289
lc3_L284_raptorOld
ldr R7, R5, #-2
lc3_L281_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;collisionDetection;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_collisionDetection
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<lea R7, collisionTestTime	;GLOB:1897>
BR #1
.FILL #1897
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L293
;<ld R7, L291_raptorOld	;GLOB:150>
BR #1
.FILL #150
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L293
;<ld R7, L14_raptorOld	;GLOB:2000>
BR #1
.FILL #2000
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L10_raptorOld	;GLOB:2003>
BR #1
.FILL #2003
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, collisionCheck	;GLOB:152>
BR #1
.FILL #152
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #5
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, collisionCheck	;GLOB:152>
BR #1
.FILL #152
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #5
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L22_raptorOld	;GLOB:1995>
BR #1
.FILL #1995
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, collisionCheck	;GLOB:152>
BR #1
.FILL #152
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #5
;<ld R7, L17_raptorOld	;GLOB:1998>
BR #1
.FILL #1998
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L16_raptorOld	;GLOB:1999>
BR #1
.FILL #1999
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L14_raptorOld	;GLOB:2000>
BR #1
.FILL #2000
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L10_raptorOld	;GLOB:2003>
BR #1
.FILL #2003
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, collisionCheck	;GLOB:152>
BR #1
.FILL #152
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #5
;<ld R0, displayHealth	;GLOB:247>
BR #1
.FILL #247
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
lc3_L291_raptorOld
lc3_L290_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;collisionCheck;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_collisionCheck
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-11
ldr R7, R5, #4
str R7, R5, #-3
;<ld R0, L298_raptorOld	;GLOB:168>
BR #1
.FILL #168
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L295_raptorOld
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-3
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
str R7, R5, #-2
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-4
ldr R3, R5, #-3
;<lea R2, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R2, #-2
ADD R2, R2, R4
;</lea>
add R3, R3, R2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L321
;<ld R7, L299_raptorOld	;GLOB:166>
BR #1
.FILL #166
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L321
ldr R7, R5, #-2
;<ld R3, L88_raptorOld	;GLOB:1968>
BR #1
.FILL #1968
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ldr R3, R5, #-4
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L322
;<ld R7, L299_raptorOld	;GLOB:166>
BR #1
.FILL #166
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L322
ldr R7, R5, #6
str R7, R5, #0
;<ld R0, L304_raptorOld	;GLOB:165>
BR #1
.FILL #165
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L301_raptorOld
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #0
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
str R7, R5, #-1
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-5
ldr R3, R5, #0
;<lea R2, enabledObjects	;GLOB:1818>
BR #1
.FILL #1818
LD R2, #-2
ADD R2, R2, R4
;</lea>
add R3, R3, R2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L323
;<ld R7, L305_raptorOld	;GLOB:163>
BR #1
.FILL #163
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L323
ldr R7, R5, #-1
;<ld R3, L88_raptorOld	;GLOB:1968>
BR #1
.FILL #1968
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ldr R3, R5, #-5
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L324
;<ld R7, L305_raptorOld	;GLOB:163>
BR #1
.FILL #163
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L324
;<ld R7, L309_raptorOld	;GLOB:1935>
BR #1
.FILL #1935
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
add R3, R3, R7
ldr R3, R3, #0
ldr R2, R5, #-2
add R7, R2, R7
ldr R7, R7, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L325
;<ld R7, L307_raptorOld	;GLOB:162>
BR #1
.FILL #162
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L325
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, collision	;GLOB:170>
BR #1
.FILL #170
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L326
;<ld R7, L310_raptorOld	;GLOB:161>
BR #1
.FILL #161
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L326
ldr R7, R5, #-2
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
str R3, R5, #-6
ldr R2, R3, #0
ldr R1, R5, #-1
;<ld R0, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
add R1, R1, R0
ldr R1, R1, #0
;<sub R2, R2, R1>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R1, R6, #0
NOT R1, R1
ADD R1, R1, #1
ADD R0, R2, R1
LDR R1, R6, #0
ADD R6, R6, #1
ADD R2, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
ADD R6, R6, #-1
STR R2, R6, #0
;<ld R2, L51_raptorOld	;GLOB:1986>
BR #1
.FILL #1986
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, min	;GLOB:177>
BR #1
.FILL #177
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
ldr R3, R5, #-6
str R7, R3, #0
ldr R7, R5, #-1
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
str R3, R5, #-7
ldr R2, R3, #0
ldr R1, R5, #-2
;<ld R0, L54_raptorOld	;GLOB:1983>
BR #1
.FILL #1983
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
add R1, R1, R0
ldr R1, R1, #0
;<sub R2, R2, R1>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R1, R6, #0
NOT R1, R1
ADD R1, R1, #1
ADD R0, R2, R1
LDR R1, R6, #0
ADD R6, R6, #1
ADD R2, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
ADD R6, R6, #-1
STR R2, R6, #0
;<ld R2, L51_raptorOld	;GLOB:1986>
BR #1
.FILL #1986
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, min	;GLOB:177>
BR #1
.FILL #177
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
ldr R3, R5, #-7
str R7, R3, #0
ldr R7, R5, #-1
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L327
;<ld R7, L313_raptorOld	;GLOB:155>
BR #1
.FILL #155
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L327
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-8
;<ld R0, L314_raptorOld	;GLOB:156>
BR #1
.FILL #156
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L313_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-8
lc3_L314_raptorOld
ldr R7, R5, #-8
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, damageControl	;GLOB:202>
BR #1
.FILL #202
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #3
ldr R7, R5, #-2
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L328
;<ld R7, L316_raptorOld	;GLOB:157>
BR #1
.FILL #157
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L328
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-9
;<ld R0, L317_raptorOld	;GLOB:158>
BR #1
.FILL #158
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L316_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-9
lc3_L317_raptorOld
ldr R7, R5, #-9
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, damageControl	;GLOB:202>
BR #1
.FILL #202
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #3
;<ld R7, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-10
;<ld R3, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
ldr R2, R5, #-2
add R2, R2, R7
ldr R2, R2, #0
ADD R7, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R2
BRnp L329
;<ld R7, L320_raptorOld	;GLOB:159>
BR #1
.FILL #159
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L329
ldr R7, R5, #-1
ldr R2, R5, #-10
add R7, R7, R2
ldr R7, R7, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L330
;<ld R7, L318_raptorOld	;GLOB:160>
BR #1
.FILL #160
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L330
lc3_L320_raptorOld
;<ld R7, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L318_raptorOld
lc3_L310_raptorOld
lc3_L307_raptorOld
lc3_L305_raptorOld
lc3_L302_raptorOld
ldr R7, R5, #0
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #0
lc3_L304_raptorOld
ldr R7, R5, #0
ldr R3, R5, #7
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L331
;<ld R7, L301_raptorOld	;GLOB:154>
BR #1
.FILL #154
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L331
lc3_L299_raptorOld
lc3_L296_raptorOld
ldr R7, R5, #-3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-3
lc3_L298_raptorOld
ldr R7, R5, #-3
ldr R3, R5, #5
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L332
;<ld R7, L295_raptorOld	;GLOB:153>
BR #1
.FILL #153
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L332
lc3_L294_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;collision;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_collision
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-16
ADD R6, R6, #-2
ADD R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getTypeImgSize	;GLOB:21>
LDR R0, R4, #21
;</ld>
jsrr R0
ADD R6, R6, #4
ADD R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #5
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getTypeImgSize	;GLOB:21>
LDR R0, R4, #21
;</ld>
jsrr R0
ADD R6, R6, #4
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, max	;GLOB:181>
BR #1
.FILL #181
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
str R7, R5, #-7
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, max	;GLOB:181>
BR #1
.FILL #181
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
str R7, R5, #-6
;<ld R7, L164_raptorOld	;GLOB:1951>
BR #1
.FILL #1951
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-16
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
ldr R2, R5, #4
add R2, R2, R7
ldr R2, R2, #0
ADD R7, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R2
BRnp L344
;<ld R7, L334_raptorOld	;GLOB:175>
BR #1
.FILL #175
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L344
ldr R7, R5, #5
ldr R2, R5, #-16
add R7, R7, R2
ldr R7, R7, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L345
;<ld R7, L334_raptorOld	;GLOB:175>
BR #1
.FILL #175
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L345
;<ld R7, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #4
add R3, R3, R7
ldr R3, R3, #0
ldr R2, R5, #5
add R7, R2, R7
ldr R7, R7, #0
;<sub R7, R3, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R3, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-4
ldr R7, R5, #-4
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L346
;<ld R7, L336_raptorOld	;GLOB:171>
BR #1
.FILL #171
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L346
;<ld R7, L125_raptorOld	;GLOB:1957>
BR #1
.FILL #1957
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-4
mul R7, R7, R3
str R7, R5, #-4
lc3_L336_raptorOld
;<ld R7, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #4
add R3, R3, R7
ldr R3, R3, #0
ldr R2, R5, #5
add R7, R2, R7
ldr R7, R7, #0
;<sub R7, R3, R7>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R7, R6, #0
NOT R7, R7
ADD R7, R7, #1
ADD R0, R3, R7
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-5
ldr R7, R5, #-5
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L347
;<ld R7, L338_raptorOld	;GLOB:172>
BR #1
.FILL #172
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L347
;<ld R7, L125_raptorOld	;GLOB:1957>
BR #1
.FILL #1957
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-5
mul R7, R7, R3
str R7, R5, #-5
lc3_L338_raptorOld
ldr R7, R5, #-4
ldr R3, R5, #-7
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L348
;<ld R7, L340_raptorOld	;GLOB:174>
BR #1
.FILL #174
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L348
ldr R7, R5, #-5
ldr R3, R5, #-6
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L349
;<ld R7, L340_raptorOld	;GLOB:174>
BR #1
.FILL #174
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L349
ldr R7, R5, #4
str R7, R5, #-17
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<ld R2, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R1, R7, R3
ldr R1, R1, #0
ldr R0, R5, #-2
div R0, R0, R2
add R1, R1, R0
str R1, R5, #-8
;<ld R1, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R1, #-2
ADD R1, R1, R4
LDR R1, R1, #0
;</ld>
add R0, R7, R1
ldr R0, R0, #0
ldr R7, R5, #0
div R7, R7, R2
add R7, R0, R7
str R7, R5, #-10
ldr R7, R5, #5
add R3, R7, R3
ldr R3, R3, #0
ldr R0, R5, #-3
div R0, R0, R2
add R3, R3, R0
str R3, R5, #-9
add R7, R7, R1
ldr R7, R7, #0
ldr R3, R5, #-1
div R3, R3, R2
add R7, R7, R3
str R7, R5, #-11
ldr R7, R5, #-8
ldr R3, R5, #-9
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
ldr R3, R5, #-10
ldr R2, R5, #-11
;<sub R3, R3, R2>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R2, R6, #0
NOT R2, R2
ADD R2, R2, #1
ADD R0, R3, R2
LDR R2, R6, #0
ADD R6, R6, #1
ADD R3, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
mul R7, R7, R7
mul R3, R3, R3
add R7, R7, R3
str R7, R5, #-13
ldr R7, R5, #-17
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getCollisionRadius	;GLOB:185>
BR #1
.FILL #185
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-14
ldr R7, R5, #5
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getCollisionRadius	;GLOB:185>
BR #1
.FILL #185
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
str R7, R5, #-15
ldr R7, R5, #-14
ldr R3, R5, #-15
add R7, R7, R3
str R7, R5, #-12
ldr R7, R5, #-12
ldr R3, R5, #-13
mul R7, R7, R7
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L350
;<ld R7, L342_raptorOld	;GLOB:173>
BR #1
.FILL #173
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L350
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
;<ld R0, L333_raptorOld	;GLOB:176>
BR #1
.FILL #176
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L342_raptorOld
lc3_L340_raptorOld
lc3_L334_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
lc3_L333_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;min;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_min
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
ldr R3, R5, #5
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L354
;<ld R7, L352_raptorOld	;GLOB:178>
BR #1
.FILL #178
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L354
ldr R7, R5, #4
str R7, R5, #0
;<ld R0, L353_raptorOld	;GLOB:179>
BR #1
.FILL #179
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L352_raptorOld
ldr R7, R5, #5
str R7, R5, #0
lc3_L353_raptorOld
ldr R7, R5, #0
lc3_L351_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;max;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_max
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
ldr R7, R5, #4
ldr R3, R5, #5
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L358
;<ld R7, L356_raptorOld	;GLOB:182>
BR #1
.FILL #182
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L358
ldr R7, R5, #4
str R7, R5, #0
;<ld R0, L357_raptorOld	;GLOB:183>
BR #1
.FILL #183
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L356_raptorOld
ldr R7, R5, #5
str R7, R5, #0
lc3_L357_raptorOld
ldr R7, R5, #0
lc3_L355_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;getCollisionRadius;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_getCollisionRadius
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-3
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #-1
ldr R7, R5, #-1
str R7, R5, #-2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L371
;<ld R7, L360_raptorOld	;GLOB:199>
BR #1
.FILL #199
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L371
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-2
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L372
;<ld R7, L360_raptorOld	;GLOB:199>
BR #1
.FILL #199
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L372
;<lea R7, L370_raptorOld	;GLOB:186>
BR #1
.FILL #186
LD R7, #-2
ADD R7, R7, R4
;</lea>
ldr R3, R5, #-2
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L363_raptorOld
;<ld R7, L364_raptorOld	;GLOB:1934>
BR #1
.FILL #1934
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L365_raptorOld
;<ld R7, L364_raptorOld	;GLOB:1934>
BR #1
.FILL #1934
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L366_raptorOld
;<ld R7, L66_raptorOld	;GLOB:1974>
BR #1
.FILL #1974
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L367_raptorOld
;<ld R7, L122_raptorOld	;GLOB:1958>
BR #1
.FILL #1958
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L368_raptorOld
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L369_raptorOld
;<ld R7, L267_raptorOld	;GLOB:1938>
BR #1
.FILL #1938
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, L361_raptorOld	;GLOB:200>
BR #1
.FILL #200
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L360_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
lc3_L361_raptorOld
ldr R7, R5, #0
lc3_L359_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;damageControl;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_damageControl
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
ldr R7, R5, #5
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L388
;<ld R7, L374_raptorOld	;GLOB:210>
BR #1
.FILL #210
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L388
ldr R7, R5, #4
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRzp L389
;<ld R7, L376_raptorOld	;GLOB:207>
BR #1
.FILL #207
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L389
ldr R7, R5, #4
;<ld R3, L309_raptorOld	;GLOB:1935>
BR #1
.FILL #1935
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L390
;<ld R7, L378_raptorOld	;GLOB:203>
BR #1
.FILL #203
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L390
ldr R7, R5, #4
;<ld R3, L380_raptorOld	;GLOB:1933>
BR #1
.FILL #1933
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, addToScore	;GLOB:223>
BR #1
.FILL #223
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L378_raptorOld
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
ldr R7, R5, #0
str R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L391
;<ld R7, L385_raptorOld	;GLOB:205>
BR #1
.FILL #205
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L391
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L392
;<ld R7, L384_raptorOld	;GLOB:204>
BR #1
.FILL #204
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L392
;<ld R7, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L393
;<ld R7, L384_raptorOld	;GLOB:204>
BR #1
.FILL #204
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L393
;<ld R0, L381_raptorOld	;GLOB:206>
BR #1
.FILL #206
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L384_raptorOld
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, blowUp	;GLOB:214>
BR #1
.FILL #214
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #3
;<ld R0, L377_raptorOld	;GLOB:209>
BR #1
.FILL #209
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L385_raptorOld
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, blowUp	;GLOB:214>
BR #1
.FILL #214
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #3
;<ld R0, setGameOver	;GLOB:212>
BR #1
.FILL #212
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
;<ld R0, L377_raptorOld	;GLOB:209>
BR #1
.FILL #209
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L381_raptorOld
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setObjEnabled	;GLOB:79>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #3
;<ld R0, L377_raptorOld	;GLOB:209>
BR #1
.FILL #209
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L376_raptorOld
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L394
;<ld R7, L386_raptorOld	;GLOB:208>
BR #1
.FILL #208
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L394
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, blowUp	;GLOB:214>
BR #1
.FILL #214
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #3
lc3_L386_raptorOld
lc3_L377_raptorOld
lc3_L374_raptorOld
lc3_L373_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;setGameOver;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_setGameOver
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<lea R7, gameOver	;GLOB:2>
ADD R7, R4, #2
;</lea>
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, playSound	;GLOB:227>
BR #1
.FILL #227
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L395_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;blowUp;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_blowUp
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-6
ldr R7, R5, #5
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L405
;<ld R7, L397_raptorOld	;GLOB:215>
BR #1
.FILL #215
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L405
ldr R7, R5, #4
;<ld R3, L89_raptorOld	;GLOB:1967>
BR #1
.FILL #1967
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L88_raptorOld	;GLOB:1968>
BR #1
.FILL #1968
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L90_raptorOld	;GLOB:1966>
BR #1
.FILL #1966
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L92_raptorOld	;GLOB:1964>
BR #1
.FILL #1964
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, IO	;GLOB:0>
LDR R3, R4, #0
;</ld>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R3, R3, R2
ldr R3, R3, #0
str R3, R7, #0
ldr R7, R5, #4
;<ld R3, L56_raptorOld	;GLOB:1981>
BR #1
.FILL #1981
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L399_raptorOld	;GLOB:1932>
BR #1
.FILL #1932
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L397_raptorOld
ADD R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #4
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, getTypeImgSize	;GLOB:21>
LDR R0, R4, #21
;</ld>
jsrr R0
ADD R6, R6, #4
ldr R7, R5, #4
;<ld R3, L103_raptorOld	;GLOB:1960>
BR #1
.FILL #1960
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R3, R7, R3
ldr R3, R3, #0
ldr R2, R5, #-2
;<ld R1, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R1, #-2
ADD R1, R1, R4
LDR R1, R1, #0
;</ld>
div R2, R2, R1
add R3, R3, R2
str R3, R5, #0
;<ld R3, L239_raptorOld	;GLOB:1940>
BR #1
.FILL #1940
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L406
;<ld R7, L400_raptorOld	;GLOB:216>
BR #1
.FILL #216
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L406
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-4
;<ld R0, L401_raptorOld	;GLOB:217>
BR #1
.FILL #217
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L400_raptorOld
;<ld R7, L71_raptorOld	;GLOB:1973>
BR #1
.FILL #1973
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-4
lc3_L401_raptorOld
ldr R7, R5, #4
;<ld R3, L106_raptorOld	;GLOB:1959>
BR #1
.FILL #1959
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
ldr R3, R5, #-3
;<ld R2, L64_raptorOld	;GLOB:1976>
BR #1
.FILL #1976
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
div R3, R3, R2
add R7, R7, R3
ldr R3, R5, #-4
add R7, R7, R3
str R7, R5, #-1
ldr R7, R5, #5
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L407
;<ld R7, L403_raptorOld	;GLOB:218>
BR #1
.FILL #218
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L407
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-5
;<ld R0, L404_raptorOld	;GLOB:219>
BR #1
.FILL #219
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L403_raptorOld
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-5
lc3_L404_raptorOld
ldr R7, R5, #-5
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #0
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createExplosion	;GLOB:53>
ADD R0, R4, #15
ADD R0, R0, #7
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #4
lc3_L396_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;setScore;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_setScore
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<lea R7, score	;GLOB:1>
ADD R7, R4, #1
;</lea>
ldr R3, R5, #4
str R3, R7, #0
;<ld R0, displayScore	;GLOB:225>
BR #1
.FILL #225
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
lc3_L408_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;addToScore;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_addToScore
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<lea R7, score	;GLOB:1>
ADD R7, R4, #1
;</lea>
ldr R3, R7, #0
ldr R2, R5, #4
add R3, R3, R2
str R3, R7, #0
;<ld R0, displayScore	;GLOB:225>
BR #1
.FILL #225
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
lc3_L409_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;displayScore;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_displayScore
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L126_raptorOld	;GLOB:1956>
BR #1
.FILL #1956
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, score	;GLOB:1>
LDR R3, R4, #1
;</ld>
str R3, R7, #0
lc3_L410_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;playSound;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_playSound
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-2
ldr R7, R5, #4
str R7, R5, #0
ldr R7, R5, #0
str R7, R5, #-1
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L432
;<ld R7, L412_raptorOld	;GLOB:244>
BR #1
.FILL #244
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L432
;<ld R7, L48_raptorOld	;GLOB:1989>
BR #1
.FILL #1989
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L433
;<ld R7, L412_raptorOld	;GLOB:244>
BR #1
.FILL #244
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L433
;<lea R7, L431_raptorOld	;GLOB:228>
BR #1
.FILL #228
LD R7, #-2
ADD R7, R7, R4
;</lea>
ldr R3, R5, #-1
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L415_raptorOld
;<lea R7, L416_raptorOld	;GLOB:1930>
BR #1
.FILL #1930
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L417_raptorOld
;<lea R7, L418_raptorOld	;GLOB:1928>
BR #1
.FILL #1928
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L419_raptorOld
;<lea R7, L420_raptorOld	;GLOB:1926>
BR #1
.FILL #1926
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L421_raptorOld
;<lea R7, L422_raptorOld	;GLOB:1924>
BR #1
.FILL #1924
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L423_raptorOld
;<lea R7, L424_raptorOld	;GLOB:1922>
BR #1
.FILL #1922
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L425_raptorOld
;<lea R7, L426_raptorOld	;GLOB:1920>
BR #1
.FILL #1920
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L427_raptorOld
;<lea R7, L428_raptorOld	;GLOB:1918>
BR #1
.FILL #1918
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, L413_raptorOld	;GLOB:245>
BR #1
.FILL #245
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L429_raptorOld
;<lea R7, L430_raptorOld	;GLOB:1916>
BR #1
.FILL #1916
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, printf	;GLOB:1901>
BR #1
.FILL #1901
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
lc3_L412_raptorOld
lc3_L413_raptorOld
lc3_L411_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;displayHealth;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_displayHealth
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-3
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R7, enabledObjects	;GLOB:1875>
BR #1
.FILL #1875
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L458
;<ld R7, L435_raptorOld	;GLOB:248>
BR #1
.FILL #248
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L458
;<ld R7, L152_raptorOld	;GLOB:1953>
BR #1
.FILL #1953
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
;<ld R3, L8_raptorOld	;GLOB:2004>
BR #1
.FILL #2004
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
mul R7, R7, R3
;<lea R3, baseObjects	;GLOB:282>
BR #1
.FILL #282
LD R3, #-2
ADD R3, R3, R4
;</lea>
add R7, R7, R3
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L53_raptorOld	;GLOB:1984>
BR #1
.FILL #1984
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ldr R7, R7, #0
str R7, R5, #0
lc3_L435_raptorOld
ldr R7, R5, #0
str R7, R5, #-2
;<ld R3, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L459
;<ld R7, L438_raptorOld	;GLOB:265>
BR #1
.FILL #265
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L459
;<ld R7, L52_raptorOld	;GLOB:1985>
BR #1
.FILL #1985
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ldr R3, R5, #-2
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L460
;<ld R7, L438_raptorOld	;GLOB:265>
BR #1
.FILL #265
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L460
;<lea R7, L456_raptorOld	;GLOB:248>
BR #1
.FILL #248
LD R7, #-2
ADD R7, R7, R4
;</lea>
ldr R3, R5, #-2
add R7, R3, R7
ldr R7, R7, #0
LDR R7, R7, #0
JMP R7 ;unconditional
lc3_L440_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L441_raptorOld	;GLOB:1915>
BR #1
.FILL #1915
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L442_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L443_raptorOld	;GLOB:1914>
BR #1
.FILL #1914
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L444_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L445_raptorOld	;GLOB:1913>
BR #1
.FILL #1913
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L446_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L447_raptorOld	;GLOB:1912>
BR #1
.FILL #1912
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L448_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L449_raptorOld	;GLOB:1911>
BR #1
.FILL #1911
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L450_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L451_raptorOld	;GLOB:1910>
BR #1
.FILL #1910
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L452_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L453_raptorOld	;GLOB:1909>
BR #1
.FILL #1909
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L454_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L455_raptorOld	;GLOB:1908>
BR #1
.FILL #1908
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R0, L439_raptorOld	;GLOB:266>
BR #1
.FILL #266
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L438_raptorOld
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<ld R3, L65_raptorOld	;GLOB:1975>
BR #1
.FILL #1975
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
;<ld R3, L278_raptorOld	;GLOB:1937>
BR #1
.FILL #1937
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
lc3_L439_raptorOld
lc3_L434_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;main;;;;;;;;;;;;;;;;;;;;;;;;;;;;
main
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-7
;<ld R0, L463_raptorOld	;GLOB:278>
BR #1
.FILL #278
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L462_raptorOld
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<lea R7, test	;GLOB:1896>
BR #1
.FILL #1896
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L466_raptorOld	;GLOB:1907>
BR #1
.FILL #1907
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, test	;GLOB:1894>
BR #1
.FILL #1894
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, test	;GLOB:1895>
BR #1
.FILL #1895
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<lea R7, test2	;GLOB:1893>
BR #1
.FILL #1893
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L469_raptorOld	;GLOB:1906>
BR #1
.FILL #1906
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, test2	;GLOB:1891>
BR #1
.FILL #1891
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, test2	;GLOB:1892>
BR #1
.FILL #1892
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<lea R7, test3	;GLOB:1890>
BR #1
.FILL #1890
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L66_raptorOld	;GLOB:1974>
BR #1
.FILL #1974
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, test3	;GLOB:1888>
BR #1
.FILL #1888
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, test3	;GLOB:1889>
BR #1
.FILL #1889
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<lea R7, test4	;GLOB:1887>
BR #1
.FILL #1887
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L474_raptorOld	;GLOB:1905>
BR #1
.FILL #1905
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, test4	;GLOB:1885>
BR #1
.FILL #1885
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, test4	;GLOB:1886>
BR #1
.FILL #1886
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<lea R7, test5	;GLOB:1884>
BR #1
.FILL #1884
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L55_raptorOld	;GLOB:1982>
BR #1
.FILL #1982
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, test5	;GLOB:1882>
BR #1
.FILL #1882
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, test5	;GLOB:1883>
BR #1
.FILL #1883
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<ld R7, L77_raptorOld	;GLOB:1971>
BR #1
.FILL #1971
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
;<ld R3, L186_raptorOld	;GLOB:1945>
BR #1
.FILL #1945
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R5, #-3
;<ld R3, L474_raptorOld	;GLOB:1905>
BR #1
.FILL #1905
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R5, #-2
str R7, R5, #-5
;<ld R7, L478_raptorOld	;GLOB:1904>
BR #1
.FILL #1904
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-6
str R7, R5, #-4
;<ld R0, L480_raptorOld	;GLOB:277>
BR #1
.FILL #277
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
lc3_L479_raptorOld
ldr R7, R5, #0
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L498
;<ld R7, L482_raptorOld	;GLOB:270>
BR #1
.FILL #270
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L498
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #0
;<ld R0, initialize	;GLOB:280>
BR #1
.FILL #280
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
lc3_L482_raptorOld
;<ld R7, gameOver	;GLOB:2>
LDR R7, R4, #2
;</ld>
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L499
;<ld R7, L484_raptorOld	;GLOB:276>
BR #1
.FILL #276
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L499
;<ld R0, moveRaptor	;GLOB:88>
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
ADD R6, R6, #1
;<ld R0, moveObjects	;GLOB:101>
BR #1
.FILL #101
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
;<ld R0, collisionDetection	;GLOB:149>
BR #1
.FILL #149
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
;<ld R0, displayHealth	;GLOB:247>
BR #1
.FILL #247
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
;<lea R7, test	;GLOB:1894>
BR #1
.FILL #1894
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L500
;<ld R7, L486_raptorOld	;GLOB:272>
BR #1
.FILL #272
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L500
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-1
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createHelicopter	;GLOB:41>
ADD R0, R4, #10
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
ldr R7, R5, #-1
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
str R7, R5, #-1
ldr R7, R5, #-1
;<ld R3, L474_raptorOld	;GLOB:1905>
BR #1
.FILL #1905
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L501
;<ld R7, L488_raptorOld	;GLOB:271>
BR #1
.FILL #271
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L501
;<ld R7, L77_raptorOld	;GLOB:1971>
BR #1
.FILL #1971
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-1
lc3_L488_raptorOld
lc3_L486_raptorOld
;<lea R7, test2	;GLOB:1891>
BR #1
.FILL #1891
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L502
;<ld R7, L490_raptorOld	;GLOB:274>
BR #1
.FILL #274
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L502
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-2
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createMig	;GLOB:44>
ADD R0, R4, #13
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
ldr R7, R5, #-2
;<ld R3, L492_raptorOld	;GLOB:1903>
BR #1
.FILL #1903
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
;<sub R7, R7, R3>
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R3, R6, #0
NOT R3, R3
ADD R3, R3, #1
ADD R0, R7, R3
LDR R3, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
;</sub>
str R7, R5, #-2
ldr R7, R5, #-2
;<ld R3, L35_raptorOld	;GLOB:1992>
BR #1
.FILL #1992
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRp L503
;<ld R7, L493_raptorOld	;GLOB:273>
BR #1
.FILL #273
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L503
;<ld R7, L474_raptorOld	;GLOB:1905>
BR #1
.FILL #1905
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
str R7, R5, #-2
lc3_L493_raptorOld
lc3_L490_raptorOld
;<lea R7, test5	;GLOB:1882>
BR #1
.FILL #1882
LD R7, #-2
ADD R7, R7, R4
;</lea>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, wait	;GLOB:58>
ADD R0, R4, #15
ADD R0, R0, #12
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L504
;<ld R7, L495_raptorOld	;GLOB:275>
BR #1
.FILL #275
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L504
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-4
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createAid	;GLOB:50>
ADD R0, R4, #15
ADD R0, R0, #4
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
ldr R7, R5, #-3
ADD R6, R6, #-1
STR R7, R6, #0
ldr R7, R5, #-4
;<ld R3, L497_raptorOld	;GLOB:1902>
BR #1
.FILL #1902
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, createBullet	;GLOB:47>
ADD R0, R4, #15
ADD R0, R0, #1
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #3
lc3_L495_raptorOld
lc3_L484_raptorOld
lc3_L480_raptorOld
;<ld R7, L27_raptorOld	;GLOB:1993>
BR #1
.FILL #1993
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, keyPressed	;GLOB:120>
BR #1
.FILL #120
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #2
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnp L505
;<ld R7, L479_raptorOld	;GLOB:269>
BR #1
.FILL #269
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
jmp R7
L505
lc3_L463_raptorOld
;<ld R0, L462_raptorOld	;GLOB:268>
BR #1
.FILL #268
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
JMP R0
;<ld R7, L23_raptorOld	;GLOB:2005>
BR #1
.FILL #2005
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
lc3_L461_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;initialize;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_initialize
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
;<ld R0, clearEnabledObjects	;GLOB:138>
BR #1
.FILL #138
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #1
;<lea R7, gameOver	;GLOB:2>
ADD R7, R4, #2
;</lea>
;<ld R3, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, IO	;GLOB:0>
LDR R7, R4, #0
;</ld>
;<lea R3, collisionTestTime	;GLOB:1897>
BR #1
.FILL #1897
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L91_raptorOld	;GLOB:1965>
BR #1
.FILL #1965
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R2, R7, R2
ldr R2, R2, #0
str R2, R3, #0
;<lea R3, collisionTestTime	;GLOB:1898>
BR #1
.FILL #1898
LD R3, #-2
ADD R3, R3, R4
;</lea>
;<ld R2, L93_raptorOld	;GLOB:1963>
BR #1
.FILL #1963
LD R2, #-2
ADD R2, R2, R4
LDR R2, R2, #0
;</ld>
add R7, R7, R2
ldr R7, R7, #0
str R7, R3, #0
;<lea R7, collisionTestTime	;GLOB:1899>
BR #1
.FILL #1899
LD R7, #-2
ADD R7, R7, R4
;</lea>
;<ld R3, L74_raptorOld	;GLOB:1972>
BR #1
.FILL #1972
LD R3, #-2
ADD R3, R3, R4
LDR R3, R3, #0
;</ld>
str R3, R7, #0
;<ld R7, L25_raptorOld	;GLOB:1994>
BR #1
.FILL #1994
LD R7, #-2
ADD R7, R7, R4
LDR R7, R7, #0
;</ld>
ADD R6, R6, #-1
STR R7, R6, #0
;<ld R0, setScore	;GLOB:221>
BR #1
.FILL #221
LD R0, #-2
ADD R0, R0, R4
LDR R0, R0, #0
;</ld>
jsrr R0
ADD R6, R6, #2
;<ld R0, createRaptor	;GLOB:39>
ADD R0, R4, #8
LDR R0, R0, #31
;</ld>
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
lc3_L506_raptorOld
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
;	void scanf(const char *format, ...) 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 

SCANF_PERCENT .FILL -37
SCANF_C .FILL -99
SCANF_D .FILL -100
SCANF_S .FILL -115 
SCANF_0 .FILL -48 
SCANF_9 .FILL -57  
SCANF_MINUS .FILL -45  
SCANF_BUF .BLKW 6
 
lc3_scanf 
ADD R6, R6, #-2 
STR R7, R6, #0 
 
ADD R6, R6, #-1		;save R5 = bp 
STR R5, R6, #0		 
ADD R5, R6, #-1 
 
ADD R6, R6, #-1		;save R4 = gp 
STR R4, R6, #0 
 
ADD R5, R5, #4		;cheating with the bp (no longer bp) 
LDR R4, R5, #0		;got addr of format string 
 

 

SCANF_LOOP	;outer loop, R0=tmp register for use with GETC 
			;R2 holds either cur letter of format string or 
			;current addr to store a char, dec, or string 
 
 
 
LDR R2, R4, #0 
 
ADD R2, R2, #0		;End of format string? (0x0000) 
BRz SCANF_DONE
 
LD R1, SCANF_PERCENT
ADD R0, R2, #0 
ADD R0, R0, R1		
BRnp SCANF_MATCHCHAR		 ;% not found
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;% found! 
ADD R4, R4, #1		;R4 points to next char of format string 
LDR R2, R4, #0 
 
LD R1, SCANF_C
ADD R0, R2, #0		;next char = c? 
ADD R0, R0, R1 
BRnp SCANF_CHECKD    

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%c found
ADD R5, R5, #1 
LDR R2, R5, #0		;R2 has addr for char to be read into 

GETC 
OUT
STR R0, R2, #0 
 
ADD R4, R4, #1 
BRnzp SCANF_LOOP
 
SCANF_CHECKD 
;is it %d? 
LD R1, SCANF_D
ADD R0, R2, #0 
ADD R0, R0, R1 
BRnp SCANF_STR  
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%d found
;consider using vars to store reg
;registers 0,1,2,3,7 available as tmp regs
 
 
ADD R6, R6, #-1		;saving current ptr into format string 
STR R4, R6, #0 
 
;ADD R6, R6, #-7		  ;making 7byte buffer for ascbin 
;ADD R4, R6, #0		  ;ptr into that buffer 
LEA R4, SCANF_BUF 
LD R2, SCANF_0
LD R1, SCANF_9
 
SCANF_SCANNUM 
 
GETC 
OUT
STR R0, R4, #0		;Reading and storing typed char 
 
ADD R0, R2, R0 
BRZP SCANF_CHECKEDLOWER 

LDR R0, R4, #0 
LD R7, SCANF_MINUS
ADD R0, R0, R7
BRz SCANF_CHECKEDLOWER
 
LEA R0, SCANF_BUF 
NOT R0, R0 
ADD R0, R0, #1 
ADD R0, R4, R0 
BRz SCANF_SCANNUM	  ;buffer is empty and wrong char, go to error?
 
ADD R4, R4, #-1 		;fixme: need to save this char
BRnzp SCANF_NUMDONE 
 
 
SCANF_CHECKEDLOWER 
 
LDR R0, R4, #0 
ADD R0, R1, R0 
BRNZ SCANF_CHECKEDUPPER 
 
LEA R0, SCANF_BUF 
NOT R0, R0 
ADD R0, R0, #1 
ADD R0, R4, R0 
BRz SCANF_SCANNUM	  ;buffer is empty and wrong char, go to error?
 
ADD R4, R4, #-1 		;fixme: need to save this char
BRnzp SCANF_NUMDONE 
 
SCANF_CHECKEDUPPER 
 
LEA R0, SCANF_BUF 
ADD R0, R0, #5 

NOT R0, R0 
ADD R0, R0, #1 
ADD R0, R4, R0 
BRz SCANF_NUMDONE	  ;buffer is full 
 
ADD R4, R4, #1 
BRnzp SCANF_SCANNUM 
 
SCANF_NUMDONE 
		 ;R4 points to last char entered in (ones digit) 
 
;ADD R7, R6, #0	 ;R7 points to the highest order digit 
LEA R7, SCANF_BUF 
LD R0, SCANF_MINUS
LD R1, SCANF_BUF
ADD R0, R0, R1
BRnp SCANF_NOTMINUS
ADD R7, R7, #1 	;fixme check for - -

SCANF_NOTMINUS
 
;STR R2, R6, #-1  ;psuedo stored -'0' on stack 
AND R2, R2, #0	 ;R2 acts as the acumulator 
 
SCANF_CALC 
 
LDR R0, R7, #0 
;LDR R1, R6, #-1 
LD R1, SCANF_0
ADD R0, R0, R1 
ADD R2, R2, R0 
 
NOT R1, R7 
ADD R1, R1, #1 
ADD R1, R4, R1 
BRz SCANF_CALCDONE 
			 ;R2 = 10*R2 
ADD R0, R2, #0 
AND R1, R1, #0 
ADD R1, R1, #9 ;R1 = counter 
 
SCANF_MULLOOP 
ADD R2, R2, R0 
ADD R1, R1, #-1 
BRnp SCANF_MULLOOP 
 
ADD R7, R7, #1 
BRnzp SCANF_CALC 
 
SCANF_CALCDONE			  

LD R0, SCANF_MINUS
LD R1, SCANF_BUF
ADD R0, R0, R1
BRnp SCANF_NOTNEG
NOT R2, R2
ADD R2, R2, #1

SCANF_NOTNEG
 
 
ADD R5, R5, #1 
LDR R0, R5, #0 		
 
STR R2, R0, #0	   ;store decimal number into address 
 
;ADD R6, R6, #7 
 
LDR R4, R6, #0 
ADD R6, R6, #1		;restoring current ptr into format string 
 
 
ADD R4, R4, #1	   ;point to next element of format string 
BRnzp SCANF_LOOP
 
 
SCANF_STR  
LD R1, SCANF_S
ADD R0, R2, #0 
ADD R0, R0, R1 
BRnp SCANF_ERROR
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%s found
ADD R6, R6, #-1		;saving current ptr into format string 
STR R4, R6, #0 
 
ADD R5, R5, #1		;getting starting addr of space for string to be read in 
LDR R4, R5, #0 
 
SCANSTRLOOP 
GETC 
OUT
STR R0, R4, #0		;Reading and storing typed char 
ADD R4, R4, #1 
 
ADD R0, R0, #-10	;End of string? Looking for CR (0x000A) 
BRnp SCANSTRLOOP   
 
SCANSTRDONE  
AND R0, R0, #0		;null terminate string 
STR R0, R4, #-1 
 
LDR R4, R6, #0		;restore r4 
ADD R6, R6, #1 
 
ADD R4, R4, #1 
BRnzp SCANF_LOOP
 
 
SCANF_MATCHCHAR 
ADD R4, R4, #1
GETC 
OUT
NOT R0, R0
ADD R0, R0, #1
ADD R0, R0, R2 
BRz SCANF_LOOP
 
SCANF_ERROR
SCANF_DONE
 
LDR R4, R6, #0		;restore R4 
ADD R6, R6, #1 
 
LDR R5, R6, #0		;restore bp 
ADD R6, R6, #1 
 
LDR R7, R6, #0		;restore ret addr 
ADD R6, R6, #1 
 
RET 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;	void printf(const char *format, ...)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

PRINTF_PERCENT .FILL -37
PRINTF_C .FILL -99
PRINTF_D .FILL -100
PRINTF_S .FILL -115
PRINTF_B .FILL -98
PRINTF_H .FILL -104
PRINTF_O .FILL -111
PRINTF_X .FILL -120
PRINTF_ASCII .FILL 48 		;postive ascii value of '0'
.FILL 49
.FILL 50
.FILL 51
.FILL 52
.FILL 53
.FILL 54
.FILL 55
.FILL 56
.FILL 57
.FILL x61    ; a			65        ;A
.FILL x62    ;  			66
.FILL x63    ;  			67
.FILL x64    ;  			68
.FILL x65    ;  			69
.FILL x66    ;  			70
PRINTF_MINUS .FILL 45  
PRINTF_BUF .BLKW 18
 

lc3_printf
ADD R6, R6, #-2
STR R7, R6, #0		;return address
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1

ADD R6, R6, #-1
STR R4, R6, #0

ADD R5, R5, #4		;cheating with the bp (no longer bp)
LDR R4, R5, #0		;got addr of format string


PRINTF_LOOP	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

LDR R0, R4, #0

ADD R0, R0, #0		;End of string? (0x0000)
BRz PRINTF_DONE

ADD R2, R0, #0
LD R1, PRINTF_PERCENT
ADD R2, R2, R1
BRnp PRINTF_CHAR		

ADD R4, R4, #1
LDR R0, R4, #0
;is it %h?      ; should ommit it because LC3 sizeof(int)==sizeof(short)
ADD R2, R0, #0
LD R3, PRINTF_H
ADD R2, R2, R3
BRnp PRINTF_CHECKCHAR

ADD R4, R4, #1  ; check next char
LDR R0, R4, #0

PRINTF_CHECKCHAR
;is it %c?
ADD R2, R0, #0
LD R3, PRINTF_C
ADD R2, R2, R3
BRnp PRINTF_CHECKSTR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%c
ADD R5, R5, #1
LDR R0, R5, #0

PRINTF_CHAR
OUT

ADD R4, R4, #1
BRnzp PRINTF_LOOP

PRINTF_CHECKSTR
;is it %s?
ADD R2, R0, #0
LD R7, PRINTF_S
ADD R2, R2, R7
BRnp PRINTF_CHECKDEC		

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%s

ADD R5, R5, #1
LDR R0, R5, #0
PUTS

ADD R4, R4, #1
BRnzp PRINTF_LOOP

PRINTF_CHECKDEC
;is it %d?
ADD R2, R0, #0
LD R7, PRINTF_D
ADD R2, R2, R7
;BRnp PRINTF_ERROR
BRnp PRINTF_CHECKHEX

AND R2, R2, #0
ADD R2, R2, #-10		;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM

PRINTF_CHECKHEX

ADD R2, R0, #0
LD R7, PRINTF_X
ADD R2, R2, R7
BRnp PRINTF_CHECKOCT

AND R2, R2, #0
ADD R2, R2, #-16		;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM

PRINTF_CHECKOCT

ADD R2, R0, #0
LD R7, PRINTF_O
ADD R2, R2, R7
BRnp PRINTF_CHECKBIN

AND R2, R2, #0
ADD R2, R2, #-8		;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM

PRINTF_CHECKBIN

ADD R2, R0, #0
LD R7, PRINTF_B
ADD R2, R2, R7
BRnp PRINTF_CHAR    ; Unknown character, print it verbatim 

AND R2, R2, #0
ADD R2, R2, #-2		;going to divide by 10 by using sub loop
;BRnzp PRINTF_NUM


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%d
PRINTF_NUM

LEA R7, PRINTF_BUF
ADD R7, R7, #15 
ADD R7, R7, #1 

;AND R2, R2, #0
;ADD R2, R2, #-10		;going to divide by 10 by using sub loop

ADD R5, R5, #1			;acquire the binary number
LDR R0, R5, #0

ADD R0, R0, #0
BRzp PRINTF_DECPOS 

NOT R0, R0				;make num positive for sub loop
ADD R0, R0, #1

PRINTF_DECPOS

AND R3, R3, #0
ADD R3, R3, #-1

PRINTF_DIVLOOP
ADD R3, R3, #1			;num/10 
ADD R0, R0, R2			;R0 = num % 10 - 10
BRzp PRINTF_DIVLOOP

ADD R3, R3, #0
BRz PRINTF_LASTDIGIT

;LD R1, PRINTF_ASCII
;ADD R1, R1, R0
;NOT R2, R2
;ADD R1, R1, R2 
;ADD R1, R1, #1
;NOT R2, R2
;;;;;ADD R1, R1, #10
;STR R1, R7, #0
;ADD R7, R7, #-1			;stored ascii value of one digit

LEA R1, PRINTF_ASCII
ADD R1, R1, R0
NOT R2, R2
ADD R1, R1, R2 
ADD R1, R1, #1
NOT R2, R2
LDR R1, R1, #0
STR R1, R7, #0
ADD R7, R7, #-1			;stored ascii value of one digit

ADD R0, R3, #0			;num/10

BRnzp PRINTF_DECPOS

PRINTF_LASTDIGIT

;LD R1, PRINTF_ASCII
;ADD R1, R1, R0
;ADD R1, R1, #10
;STR R1, R7, #0

LEA R1, PRINTF_ASCII
ADD R1, R1, R0
NOT R2, R2
ADD R1, R1, R2 
ADD R1, R1, #1
NOT R2, R2
LDR R1, R1, #0
STR R1, R7, #0			;stored ascii value of highest order digit

LDR R0, R5, #0
ADD R0, R0, #0
BRzp PRINTF_DECSTRING

LD R0, PRINTF_MINUS		;num was negative
ADD R7, R7, #-1
STR R0, R7, #0			;stored ascii value negative sign

PRINTF_DECSTRING		;print the calculated string
ADD R0, R7, #0
PUTS

ADD R4, R4, #1
BRnzp PRINTF_LOOP

PRINTF_ERROR
PRINTF_DONE

LDR R4, R6, #0		;restore R4
ADD R6, R6, #1

LDR R5, R6, #0		;restore bp
ADD R6, R6, #1

LDR R7, R6, #0		;restore ret addr
ADD R6, R6, #1

RET

GLOBAL_DATA_START
IO .FILL xfe00
score .FILL #0
gameOver .FILL #0
getObjAddressOffset .FILL lc3_getObjAddressOffset
L26_raptorOld .FILL L7_raptorOld
.FILL L9_raptorOld
.FILL L12_raptorOld
.FILL L15_raptorOld
.FILL L18_raptorOld
.FILL L21_raptorOld
.FILL L24_raptorOld
L7_raptorOld .FILL lc3_L7_raptorOld
L9_raptorOld .FILL lc3_L9_raptorOld
L12_raptorOld .FILL lc3_L12_raptorOld
L15_raptorOld .FILL lc3_L15_raptorOld
L18_raptorOld .FILL lc3_L18_raptorOld
L21_raptorOld .FILL lc3_L21_raptorOld
L24_raptorOld .FILL lc3_L24_raptorOld
L4_raptorOld .FILL lc3_L4_raptorOld
L5_raptorOld .FILL lc3_L5_raptorOld
L3_raptorOld .FILL lc3_L3_raptorOld
getTypeImgSize .FILL lc3_getTypeImgSize
L44_raptorOld .FILL L34_raptorOld
.FILL L36_raptorOld
.FILL L37_raptorOld
.FILL L38_raptorOld
.FILL L40_raptorOld
.FILL L41_raptorOld
.FILL L42_raptorOld
L34_raptorOld .FILL lc3_L34_raptorOld
L36_raptorOld .FILL lc3_L36_raptorOld
L37_raptorOld .FILL lc3_L37_raptorOld
L38_raptorOld .FILL lc3_L38_raptorOld
L40_raptorOld .FILL lc3_L40_raptorOld
L41_raptorOld .FILL lc3_L41_raptorOld
L42_raptorOld .FILL lc3_L42_raptorOld
L31_raptorOld .FILL lc3_L31_raptorOld
L32_raptorOld .FILL lc3_L32_raptorOld
L30_raptorOld .FILL lc3_L30_raptorOld
createRaptor .FILL lc3_createRaptor
L47_raptorOld .FILL lc3_L47_raptorOld
createHelicopter .FILL lc3_createHelicopter
L62_raptorOld .FILL lc3_L62_raptorOld
L61_raptorOld .FILL lc3_L61_raptorOld
createMig .FILL lc3_createMig
L69_raptorOld .FILL lc3_L69_raptorOld
L68_raptorOld .FILL lc3_L68_raptorOld
createBullet .FILL lc3_createBullet
L75_raptorOld .FILL lc3_L75_raptorOld
L73_raptorOld .FILL lc3_L73_raptorOld
createAid .FILL lc3_createAid
L80_raptorOld .FILL lc3_L80_raptorOld
L79_raptorOld .FILL lc3_L79_raptorOld
createExplosion .FILL lc3_createExplosion
L86_raptorOld .FILL lc3_L86_raptorOld
L95_raptorOld .FILL lc3_L95_raptorOld
L96_raptorOld .FILL lc3_L96_raptorOld
L84_raptorOld .FILL lc3_L84_raptorOld
wait .FILL lc3_wait
L101_raptorOld .FILL lc3_L101_raptorOld
L107_raptorOld .FILL lc3_L107_raptorOld
L111_raptorOld .FILL lc3_L111_raptorOld
L108_raptorOld .FILL lc3_L108_raptorOld
L102_raptorOld .FILL lc3_L102_raptorOld
L113_raptorOld .FILL lc3_L113_raptorOld
L99_raptorOld .FILL lc3_L99_raptorOld
raptorShoot .FILL lc3_raptorShoot
L127_raptorOld .FILL lc3_L127_raptorOld
L128_raptorOld .FILL lc3_L128_raptorOld
L123_raptorOld .FILL lc3_L123_raptorOld
L121_raptorOld .FILL lc3_L121_raptorOld
createBaseObj .FILL lc3_createBaseObj
L134_raptorOld .FILL lc3_L134_raptorOld
setObjX .FILL lc3_setObjX
L155_raptorOld .FILL lc3_L155_raptorOld
L154_raptorOld .FILL lc3_L154_raptorOld
setObjY .FILL lc3_setObjY
L160_raptorOld .FILL lc3_L160_raptorOld
L159_raptorOld .FILL lc3_L159_raptorOld
setObjEnabled .FILL lc3_setObjEnabled
L165_raptorOld .FILL lc3_L165_raptorOld
L163_raptorOld .FILL lc3_L163_raptorOld
saveBaseObj .FILL lc3_saveBaseObj
L169_raptorOld .FILL lc3_L169_raptorOld
L173_raptorOld .FILL lc3_L173_raptorOld
L168_raptorOld .FILL lc3_L168_raptorOld
getObjVGAID .FILL lc3_getObjVGAID
L179_raptorOld .FILL lc3_L179_raptorOld
moveRaptor .FILL lc3_moveRaptor
L187_raptorOld .FILL lc3_L187_raptorOld
L184_raptorOld .FILL lc3_L184_raptorOld
L193_raptorOld .FILL lc3_L193_raptorOld
L190_raptorOld .FILL lc3_L190_raptorOld
L198_raptorOld .FILL lc3_L198_raptorOld
L195_raptorOld .FILL lc3_L195_raptorOld
L202_raptorOld .FILL lc3_L202_raptorOld
L200_raptorOld .FILL lc3_L200_raptorOld
L204_raptorOld .FILL lc3_L204_raptorOld
L206_raptorOld .FILL lc3_L206_raptorOld
L182_raptorOld .FILL lc3_L182_raptorOld
L181_raptorOld .FILL lc3_L181_raptorOld
moveObjects .FILL lc3_moveObjects
L220_raptorOld .FILL lc3_L220_raptorOld
L226_raptorOld .FILL lc3_L226_raptorOld
L224_raptorOld .FILL lc3_L224_raptorOld
L221_raptorOld .FILL lc3_L221_raptorOld
L219_raptorOld .FILL lc3_L219_raptorOld
moveObject .FILL lc3_moveObject
L235_raptorOld .FILL lc3_L235_raptorOld
L237_raptorOld .FILL lc3_L237_raptorOld
L240_raptorOld .FILL lc3_L240_raptorOld
L242_raptorOld .FILL lc3_L242_raptorOld
L243_raptorOld .FILL lc3_L243_raptorOld
L241_raptorOld .FILL lc3_L241_raptorOld
L238_raptorOld .FILL lc3_L238_raptorOld
L247_raptorOld .FILL lc3_L247_raptorOld
L246_raptorOld .FILL lc3_L246_raptorOld
L244_raptorOld .FILL lc3_L244_raptorOld
L233_raptorOld .FILL lc3_L233_raptorOld
L231_raptorOld .FILL lc3_L231_raptorOld
keyPressed .FILL lc3_keyPressed
L270_raptorOld .FILL L264_raptorOld
.FILL L263_raptorOld
.FILL L262_raptorOld
.FILL L265_raptorOld
.FILL L266_raptorOld
.FILL L268_raptorOld
.FILL L269_raptorOld
L262_raptorOld .FILL lc3_L262_raptorOld
L263_raptorOld .FILL lc3_L263_raptorOld
L264_raptorOld .FILL lc3_L264_raptorOld
L265_raptorOld .FILL lc3_L265_raptorOld
L266_raptorOld .FILL lc3_L266_raptorOld
L268_raptorOld .FILL lc3_L268_raptorOld
L269_raptorOld .FILL lc3_L269_raptorOld
L259_raptorOld .FILL lc3_L259_raptorOld
L260_raptorOld .FILL lc3_L260_raptorOld
L257_raptorOld .FILL lc3_L257_raptorOld
clearEnabledObjects .FILL lc3_clearEnabledObjects
L274_raptorOld .FILL lc3_L274_raptorOld
L275_raptorOld .FILL lc3_L275_raptorOld
L273_raptorOld .FILL lc3_L273_raptorOld
getNewObjectId .FILL lc3_getNewObjectId
L282_raptorOld .FILL lc3_L282_raptorOld
L286_raptorOld .FILL lc3_L286_raptorOld
L283_raptorOld .FILL lc3_L283_raptorOld
L285_raptorOld .FILL lc3_L285_raptorOld
L284_raptorOld .FILL lc3_L284_raptorOld
L281_raptorOld .FILL lc3_L281_raptorOld
collisionDetection .FILL lc3_collisionDetection
L291_raptorOld .FILL lc3_L291_raptorOld
L290_raptorOld .FILL lc3_L290_raptorOld
collisionCheck .FILL lc3_collisionCheck
L295_raptorOld .FILL lc3_L295_raptorOld
L301_raptorOld .FILL lc3_L301_raptorOld
L313_raptorOld .FILL lc3_L313_raptorOld
L314_raptorOld .FILL lc3_L314_raptorOld
L316_raptorOld .FILL lc3_L316_raptorOld
L317_raptorOld .FILL lc3_L317_raptorOld
L320_raptorOld .FILL lc3_L320_raptorOld
L318_raptorOld .FILL lc3_L318_raptorOld
L310_raptorOld .FILL lc3_L310_raptorOld
L307_raptorOld .FILL lc3_L307_raptorOld
L305_raptorOld .FILL lc3_L305_raptorOld
L302_raptorOld .FILL lc3_L302_raptorOld
L304_raptorOld .FILL lc3_L304_raptorOld
L299_raptorOld .FILL lc3_L299_raptorOld
L296_raptorOld .FILL lc3_L296_raptorOld
L298_raptorOld .FILL lc3_L298_raptorOld
L294_raptorOld .FILL lc3_L294_raptorOld
collision .FILL lc3_collision
L336_raptorOld .FILL lc3_L336_raptorOld
L338_raptorOld .FILL lc3_L338_raptorOld
L342_raptorOld .FILL lc3_L342_raptorOld
L340_raptorOld .FILL lc3_L340_raptorOld
L334_raptorOld .FILL lc3_L334_raptorOld
L333_raptorOld .FILL lc3_L333_raptorOld
min .FILL lc3_min
L352_raptorOld .FILL lc3_L352_raptorOld
L353_raptorOld .FILL lc3_L353_raptorOld
L351_raptorOld .FILL lc3_L351_raptorOld
max .FILL lc3_max
L356_raptorOld .FILL lc3_L356_raptorOld
L357_raptorOld .FILL lc3_L357_raptorOld
L355_raptorOld .FILL lc3_L355_raptorOld
getCollisionRadius .FILL lc3_getCollisionRadius
L370_raptorOld .FILL L363_raptorOld
.FILL L365_raptorOld
.FILL L366_raptorOld
.FILL L367_raptorOld
.FILL L360_raptorOld
.FILL L368_raptorOld
.FILL L369_raptorOld
L363_raptorOld .FILL lc3_L363_raptorOld
L365_raptorOld .FILL lc3_L365_raptorOld
L366_raptorOld .FILL lc3_L366_raptorOld
L367_raptorOld .FILL lc3_L367_raptorOld
L368_raptorOld .FILL lc3_L368_raptorOld
L369_raptorOld .FILL lc3_L369_raptorOld
L360_raptorOld .FILL lc3_L360_raptorOld
L361_raptorOld .FILL lc3_L361_raptorOld
L359_raptorOld .FILL lc3_L359_raptorOld
damageControl .FILL lc3_damageControl
L378_raptorOld .FILL lc3_L378_raptorOld
L384_raptorOld .FILL lc3_L384_raptorOld
L385_raptorOld .FILL lc3_L385_raptorOld
L381_raptorOld .FILL lc3_L381_raptorOld
L376_raptorOld .FILL lc3_L376_raptorOld
L386_raptorOld .FILL lc3_L386_raptorOld
L377_raptorOld .FILL lc3_L377_raptorOld
L374_raptorOld .FILL lc3_L374_raptorOld
L373_raptorOld .FILL lc3_L373_raptorOld
setGameOver .FILL lc3_setGameOver
L395_raptorOld .FILL lc3_L395_raptorOld
blowUp .FILL lc3_blowUp
L397_raptorOld .FILL lc3_L397_raptorOld
L400_raptorOld .FILL lc3_L400_raptorOld
L401_raptorOld .FILL lc3_L401_raptorOld
L403_raptorOld .FILL lc3_L403_raptorOld
L404_raptorOld .FILL lc3_L404_raptorOld
L396_raptorOld .FILL lc3_L396_raptorOld
setScore .FILL lc3_setScore
L408_raptorOld .FILL lc3_L408_raptorOld
addToScore .FILL lc3_addToScore
L409_raptorOld .FILL lc3_L409_raptorOld
displayScore .FILL lc3_displayScore
L410_raptorOld .FILL lc3_L410_raptorOld
playSound .FILL lc3_playSound
L431_raptorOld .FILL L415_raptorOld
.FILL L417_raptorOld
.FILL L419_raptorOld
.FILL L421_raptorOld
.FILL L423_raptorOld
.FILL L425_raptorOld
.FILL L427_raptorOld
.FILL L429_raptorOld
L415_raptorOld .FILL lc3_L415_raptorOld
L417_raptorOld .FILL lc3_L417_raptorOld
L419_raptorOld .FILL lc3_L419_raptorOld
L421_raptorOld .FILL lc3_L421_raptorOld
L423_raptorOld .FILL lc3_L423_raptorOld
L425_raptorOld .FILL lc3_L425_raptorOld
L427_raptorOld .FILL lc3_L427_raptorOld
L429_raptorOld .FILL lc3_L429_raptorOld
L412_raptorOld .FILL lc3_L412_raptorOld
L413_raptorOld .FILL lc3_L413_raptorOld
L411_raptorOld .FILL lc3_L411_raptorOld
displayHealth .FILL lc3_displayHealth
L435_raptorOld .FILL lc3_L435_raptorOld
L456_raptorOld .FILL L440_raptorOld
.FILL L442_raptorOld
.FILL L444_raptorOld
.FILL L446_raptorOld
.FILL L448_raptorOld
.FILL L450_raptorOld
.FILL L452_raptorOld
.FILL L454_raptorOld
L440_raptorOld .FILL lc3_L440_raptorOld
L442_raptorOld .FILL lc3_L442_raptorOld
L444_raptorOld .FILL lc3_L444_raptorOld
L446_raptorOld .FILL lc3_L446_raptorOld
L448_raptorOld .FILL lc3_L448_raptorOld
L450_raptorOld .FILL lc3_L450_raptorOld
L452_raptorOld .FILL lc3_L452_raptorOld
L454_raptorOld .FILL lc3_L454_raptorOld
L438_raptorOld .FILL lc3_L438_raptorOld
L439_raptorOld .FILL lc3_L439_raptorOld
L434_raptorOld .FILL lc3_L434_raptorOld
L462_raptorOld .FILL lc3_L462_raptorOld
L479_raptorOld .FILL lc3_L479_raptorOld
L482_raptorOld .FILL lc3_L482_raptorOld
L488_raptorOld .FILL lc3_L488_raptorOld
L486_raptorOld .FILL lc3_L486_raptorOld
L493_raptorOld .FILL lc3_L493_raptorOld
L490_raptorOld .FILL lc3_L490_raptorOld
L495_raptorOld .FILL lc3_L495_raptorOld
L484_raptorOld .FILL lc3_L484_raptorOld
L480_raptorOld .FILL lc3_L480_raptorOld
L463_raptorOld .FILL lc3_L463_raptorOld
L461_raptorOld .FILL lc3_L461_raptorOld
initialize .FILL lc3_initialize
L506_raptorOld .FILL lc3_L506_raptorOld
baseObjects .BLKW 1536
enabledObjects .BLKW 64
test5 .BLKW 3
test4 .BLKW 3
test3 .BLKW 3
test2 .BLKW 3
test .BLKW 3
collisionTestTime .BLKW 3
scanf .FILL lc3_scanf
printf .FILL lc3_printf
L497_raptorOld .FILL #100
L492_raptorOld .FILL #50
L478_raptorOld .FILL #300
L474_raptorOld .FILL #700
L469_raptorOld .FILL #450
L466_raptorOld .FILL #600
L455_raptorOld .FILL #255
L453_raptorOld .FILL #127
L451_raptorOld .FILL #63
L449_raptorOld .FILL #31
L447_raptorOld .FILL #15
L445_raptorOld .FILL #7
L443_raptorOld .FILL #3
L441_raptorOld .FILL #1
L430_raptorOld .STRINGZ "8"
L428_raptorOld .STRINGZ "7"
L426_raptorOld .STRINGZ "6"
L424_raptorOld .STRINGZ "5"
L422_raptorOld .STRINGZ "4"
L420_raptorOld .STRINGZ "3"
L418_raptorOld .STRINGZ "2"
L416_raptorOld .STRINGZ "1"
L399_raptorOld .FILL #500
L380_raptorOld .FILL #14
L364_raptorOld .FILL #22
L309_raptorOld .FILL #7
L279_raptorOld .FILL #193
L278_raptorOld .FILL #0
L267_raptorOld .FILL #16
L258_raptorOld .FILL #26
L239_raptorOld .FILL #4
L232_raptorOld .FILL #542
L197_raptorOld .FILL #641
L192_raptorOld .FILL #478
L189_raptorOld .FILL #65
L186_raptorOld .FILL #10
L180_raptorOld .FILL #3
L176_raptorOld .FILL #448
L175_raptorOld .FILL #384
L172_raptorOld .FILL #320
L171_raptorOld .FILL #9
L164_raptorOld .FILL #5
L157_raptorOld .FILL #8
L152_raptorOld .FILL #24
L130_raptorOld .FILL #18
L129_raptorOld .FILL #36
L126_raptorOld .FILL #18
L125_raptorOld .FILL #-1
L122_raptorOld .FILL #3
L106_raptorOld .FILL #2
L103_raptorOld .FILL #1
L100_raptorOld .FILL #30000
L94_raptorOld .FILL #750
L93_raptorOld .FILL #29
L92_raptorOld .FILL #16
L91_raptorOld .FILL #28
L90_raptorOld .FILL #15
L89_raptorOld .FILL #6
L88_raptorOld .FILL #10
L85_raptorOld .FILL #4
L82_raptorOld .FILL #-2
L77_raptorOld .FILL #70
L74_raptorOld .FILL #5
L71_raptorOld .FILL #15
L66_raptorOld .FILL #20
L65_raptorOld .FILL #22
L64_raptorOld .FILL #2
L60_raptorOld .FILL #23
L59_raptorOld .FILL #150
L58_raptorOld .FILL #20
L57_raptorOld .FILL #25
L56_raptorOld .FILL #17
L55_raptorOld .FILL #1000
L54_raptorOld .FILL #11
L53_raptorOld .FILL #13
L52_raptorOld .FILL #8
L51_raptorOld .FILL #12
L50_raptorOld .FILL #350
L49_raptorOld .FILL #480
L48_raptorOld .FILL #7
L43_raptorOld .FILL #32
L39_raptorOld .FILL #28
L35_raptorOld .FILL #64
L27_raptorOld .FILL #6
L25_raptorOld .FILL #0
L22_raptorOld .FILL #30
L20_raptorOld .FILL #58
L19_raptorOld .FILL #63
L17_raptorOld .FILL #31
L16_raptorOld .FILL #40
L14_raptorOld .FILL #41
L13_raptorOld .FILL #48
L11_raptorOld .FILL #49
L10_raptorOld .FILL #56
L8_raptorOld .FILL #57
L23_raptorOld .FILL #1
.END
